package top.yangbuyi.acpect.annotaction;

import top.yangbuyi.acpect.enums.BusinessType;
import top.yangbuyi.acpect.enums.OperatorType;

import java.lang.annotation.*;

/**
 * description:  杨不易网站 :www.yangbuyi.top
 * program:  yangbuyiopenHis2020
 * ClassName:  Log
 * create:  2020-09-01 14:17
 *
 * @author: yangbuyi
 * @since： JDK1.8
 * @Log: 自定义注解日志管控$
 **/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log {
	  /**
	   * 模块
	   */
	  public String title() default "";

	  /**
	   * 功能
	   */
	  public BusinessType businessType() default BusinessType.OTHER;

	  /**
	   * 操作人类别
	   */
	  public OperatorType operatorType() default OperatorType.MANAGE;

	  /**
	   * 是否保存请求的参数
	   */
	  public boolean isSaveRequestData() default true;

}
